package com.efruit.dao;

import java.util.List;

import com.efruit.po.User;

public interface IUserDAO {
	public void save(User transientInstance);

	public void delete(User persistentInstance);

	public User findById(java.lang.Integer id);

	public List findByExample(User instance);

	public List findByProperty(String propertyName, Object value);

	public List findByName(Object username);

	public List findByPassword(Object password);
	
	public List findByAuthority(Object authority);
	
	public List findByUsernamePassword(Object username, Object password);

	public List findAll();

	public User merge(User detachedInstance);

	public void attachDirty(User instance);

	public void attachClean(User instance);

	//public static UserDaoImpl getFromApplicationContext(ApplicationContext ctx);
}
